﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:framework="clr-namespace:myBoard.Framework;assembly=myBoard.Framework"
                      xmlns:Custom="http://schemas.sheva.com/winfx/2006/xaml/presentation" xmlns:d="http://schemas.microsoft.com/expression/blend/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:myBoard_Cal="clr-namespace:myBoard.CalendarNS"
    xmlns:local="clr-namespace:myBoard.CalendarNS" x:Class="myBoard.CalendarNS.Calendar"
                      Width="367" Height="180" RenderTransformOrigin="0.5,0.5" Foreground="{x:Null}" x:Name="UserControl"
    >
  <UserControl.Resources>
    <ObjectDataProvider x:Key="CalDS" d:IsDataSource="True" ObjectType="{x:Type myBoard_Cal:Cal}"/>
    <myBoard_Cal:DayColorValueConvertor x:Key="DayColorValueConvertor"/>
    
    <Style x:Key="ButtonFocusVisual">
      <Setter Property="Control.Template">
        <Setter.Value>
          <ControlTemplate>
            <Rectangle SnapsToDevicePixels="true" Stroke="Black" StrokeDashArray="1 2" StrokeThickness="1" Margin="2"/>
          </ControlTemplate>
        </Setter.Value>
      </Setter>
    </Style>
    <LinearGradientBrush x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0">
      <GradientStop Color="#F3F3F3" Offset="0"/>
      <GradientStop Color="#EBEBEB" Offset="0.5"/>
      <GradientStop Color="#DDDDDD" Offset="0.5"/>
      <GradientStop Color="#CDCDCD" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ButtonNormalBorder" Color="#FF707070"/>
    <Style x:Key="DoneButtonStyle" TargetType="{x:Type Button}">
      <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
      <Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
      <Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
      <Setter Property="BorderThickness" Value="1"/>
      <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
      <Setter Property="HorizontalContentAlignment" Value="Center"/>
      <Setter Property="VerticalContentAlignment" Value="Center"/>
      <Setter Property="Padding" Value="1"/>
      <Setter Property="Template">
        <Setter.Value>
          <ControlTemplate TargetType="{x:Type Button}">
            <Border Width="Auto" Height="21.96" Background="{x:Null}" BorderBrush="#FF969696" BorderThickness="0.5,0.5,0.5,0.5" CornerRadius="3,3,3,3">
              <Grid Width="Auto" Height="19.96">
                <Label HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" Height="Auto" Content="Done" FontFamily="Calibri" Foreground="#FFFFFFFF" Padding="5,1,5,1"/>
                <Rectangle Fill="#FFFFFFFF" Stroke="{x:Null}" StrokeThickness="1" RadiusX="0.979" RadiusY="0.979" Margin="0,0,0,10">
                  <Rectangle.OpacityMask>
                    <LinearGradientBrush EndPoint="0.5,1.08" StartPoint="0.5,-0.009">
                      <GradientStop Color="#33000000" Offset="0"/>
                      <GradientStop Color="#00000000" Offset="1"/>
                      <GradientStop Color="#45000000" Offset="0.389"/>
                      <GradientStop Color="#B2000000" Offset="0.173"/>
                      <GradientStop Color="#08000000" Offset="0.716"/>
                    </LinearGradientBrush>
                  </Rectangle.OpacityMask>
                </Rectangle>
              </Grid>
            </Border>
            <ControlTemplate.Triggers>
              <Trigger Property="IsKeyboardFocused" Value="true"/>
              <Trigger Property="ToggleButton.IsChecked" Value="true"/>
              <Trigger Property="IsEnabled" Value="false">
                <Setter Property="Foreground" Value="#ADADAD"/>
              </Trigger>
            </ControlTemplate.Triggers>
          </ControlTemplate>
        </Setter.Value>
      </Setter>
    </Style>
  	<DataTemplate x:Key="CalTemplate">
  		<Border Height="Auto">
        <!--<Label Content="{Binding Path=Day, Mode=OneWay}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="20" Height="Auto" Background="{x:Null}" FontFamily="Calibri" FontSize="14" FontWeight="Bold" Foreground="#FFFFFFFF" HorizontalContentAlignment="Right" Padding="0,0,0,0"/>-->
        <Label Content="{Binding Path=Day, Mode=OneWay}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="20" Height="Auto" Background="{x:Null}" FontFamily="Calibri" FontSize="14" FontWeight="Bold" Foreground="{Binding Converter={StaticResource DayColorValueConvertor}}" HorizontalContentAlignment="Right" Padding="0,0,0,0"/>
  		</Border>
  	</DataTemplate>
  	<SolidColorBrush x:Key="ListBorder" Color="#828790"/>
  	<Style x:Key="DaysListboxStyle" TargetType="{x:Type ListBox}">
  		<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
  		<Setter Property="BorderBrush" Value="{StaticResource ListBorder}"/>
  		<Setter Property="BorderThickness" Value="1"/>
  		<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
  		<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
  		<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
  		<Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
  		<Setter Property="VerticalContentAlignment" Value="Center"/>
  		<Setter Property="Template">
  			<Setter.Value>
  				<ControlTemplate TargetType="{x:Type ListBox}">
  					<Border SnapsToDevicePixels="true" x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="1">
  						<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Width="Auto" Height="Auto"/>
  					</Border>
  					<ControlTemplate.Triggers>
  						<Trigger Property="IsEnabled" Value="false">
  							<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
  						</Trigger>
  						<Trigger Property="IsGrouping" Value="true">
  							<Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
  						</Trigger>
  					</ControlTemplate.Triggers>
  				</ControlTemplate>
  			</Setter.Value>
  		</Setter>
  	</Style>
  	<Style x:Key="ListBoxItemContainerStyle" TargetType="{x:Type ListBoxItem}">
  		<Setter Property="Background" Value="Transparent"/>
  		<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
  		<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
  		<Setter Property="Padding" Value="2,0,0,0"/>
  		<Setter Property="Template">
  			<Setter.Value>
  				<ControlTemplate TargetType="{x:Type ListBoxItem}">
  					<Border SnapsToDevicePixels="true" x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
  						<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
  					</Border>
  				</ControlTemplate>
  			</Setter.Value>
  		</Setter>
  	</Style>
  	<ItemsPanelTemplate x:Key="ItemsPanelTemplate1">
  		<WrapPanel IsItemsHost="True"/>
  	</ItemsPanelTemplate>  	
  	<DataTemplate x:Key="WeekDaysTemplate">
  		<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" FontFamily="Calibri" FontSize="14" FontWeight="Bold" Text="{Binding}">
  			<TextBlock.Foreground>
  				<SolidColorBrush Color="{DynamicResource {x:Static SystemColors.GrayTextColorKey}}"/>
  			</TextBlock.Foreground>
  		</TextBlock>
  	</DataTemplate>
  	<ItemsPanelTemplate x:Key="WeekDaysListbxPanel">
  		<VirtualizingStackPanel IsItemsHost="True" Orientation="Horizontal"/>
  	</ItemsPanelTemplate>
  	<Style x:Key="weekDaysListbxStyle" TargetType="{x:Type ListBox}">
  		<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
  		<Setter Property="BorderBrush" Value="{StaticResource ListBorder}"/>
  		<Setter Property="BorderThickness" Value="1"/>
  		<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
  		<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
  		<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
  		<Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
  		<Setter Property="VerticalContentAlignment" Value="Center"/>
  		<Setter Property="Template">
  			<Setter.Value>
  				<ControlTemplate TargetType="{x:Type ListBox}">
  					<Border SnapsToDevicePixels="true" x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="1">
  						<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Width="Auto" Height="11.145"/>
  					</Border>
  					<ControlTemplate.Triggers>
  						<Trigger Property="IsEnabled" Value="false">
  							<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
  						</Trigger>
  						<Trigger Property="IsGrouping" Value="true">
  							<Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
  						</Trigger>
  					</ControlTemplate.Triggers>
  				</ControlTemplate>
  			</Setter.Value>
  		</Setter>
  	</Style>
  	<Style x:Key="weekDaysListbxItemsContainerStyle" TargetType="{x:Type ListBoxItem}">
  		<Setter Property="Background" Value="Transparent"/>
  		<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
  		<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
  		<Setter Property="Padding" Value="2,0,0,0"/>
  		<Setter Property="Template">
  			<Setter.Value>
  				<ControlTemplate TargetType="{x:Type ListBoxItem}">
  					<Border SnapsToDevicePixels="true" x:Name="Bd" Width="23" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
  						<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="Center" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
  					</Border>
  				</ControlTemplate>
  			</Setter.Value>
  		</Setter>
  	</Style>  	
  	<Style x:Key="GotoPreviousMonthButStyle" TargetType="{x:Type Button}">
  		<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
  		<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
  		<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
  		<Setter Property="BorderThickness" Value="1"/>
  		<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
  		<Setter Property="HorizontalContentAlignment" Value="Center"/>
  		<Setter Property="VerticalContentAlignment" Value="Center"/>
  		<Setter Property="Padding" Value="1"/>
  		<Setter Property="Template">
  			<Setter.Value>
  				<ControlTemplate TargetType="{x:Type Button}">
  					<Border Width="Auto" Background="#00000000">
  						<Path RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Stretch="Fill" Stroke="{x:Null}" Width="7" Height="7" Data="M0.5,0.5 L9.5,0.5 0.5,9.5 z">
  							<Path.RenderTransform>
  								<TransformGroup>
  									<ScaleTransform ScaleX="1" ScaleY="1"/>
  									<SkewTransform AngleX="0" AngleY="0"/>
  									<RotateTransform Angle="-45"/>
  									<TranslateTransform X="0" Y="0"/>
  								</TransformGroup>
  							</Path.RenderTransform>
  						</Path>
  					</Border>
  				</ControlTemplate>
  			</Setter.Value>
  		</Setter>
  	</Style>
  	<Style x:Key="GotoNextMonthButStyle" TargetType="{x:Type Button}">
  		<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
  		<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
  		<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
  		<Setter Property="BorderThickness" Value="1"/>
  		<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
  		<Setter Property="HorizontalContentAlignment" Value="Center"/>
  		<Setter Property="VerticalContentAlignment" Value="Center"/>
  		<Setter Property="Padding" Value="1"/>
  		<Setter Property="Template">
  			<Setter.Value>
  				<ControlTemplate TargetType="{x:Type Button}">
  					<Border Width="Auto" Background="#00000000">
  						<Path RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Stretch="Fill" Stroke="{x:Null}" Width="7" Height="7" Data="M0.5,0.5 L9.5,0.5 0.5,9.5 z">
  							<Path.RenderTransform>
  								<TransformGroup>
  									<ScaleTransform ScaleX="1" ScaleY="1"/>
  									<SkewTransform AngleX="0" AngleY="0"/>
  									<RotateTransform Angle="135"/>
  									<TranslateTransform X="0" Y="0"/>
  								</TransformGroup>
  							</Path.RenderTransform>
  						</Path>
  					</Border>
  				</ControlTemplate>
  			</Setter.Value>
  		</Setter>
  	</Style>  	
  </UserControl.Resources>
	<Grid x:Name="_magnetRoot" Width="Auto" Height="Auto">

		<Grid HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="_backside" Width="Auto" d:IsHidden="True" Visibility="Hidden">
			<Border CornerRadius="20,20,20,20" BorderBrush="#FFFFFFFF" BorderThickness="3,3,3,3" Visibility="Visible" x:Name="RealGadget1" Background="#FF000000">
				<Grid>
					<Border VerticalAlignment="Top" Height="30" Background="#30FFFFFF" CornerRadius="20,20,20,20" Padding="0,0,16,0">
						<Label HorizontalAlignment="Right" Height="Auto" FontFamily="Calibri" FontSize="18" Foreground="#FFFFFFFF" Content="Configuration" Padding="0,0,0,0"/>
					</Border>
					<Label d:LayoutOverrides="Width, Height" HorizontalAlignment="Center" VerticalAlignment="Center" Content="This is a test magnet" Foreground="#FFFFFFFF"/>
					<Button d:LayoutOverrides="Height" HorizontalAlignment="Right" Margin="0,0,21,8" x:Name="_doneButton" Style="{DynamicResource DoneButtonStyle}" VerticalAlignment="Bottom" Width="41" Content="Done"/>
				</Grid>
			</Border>
		</Grid>
		<Grid x:Name="_frontside" Width="{Binding Path=ActualWidth, ElementName=_magnetRoot, Mode=Default}" HorizontalAlignment="Stretch" Height="{Binding Path=ActualHeight, ElementName=_magnetRoot, Mode=Default}">
			<Image HorizontalAlignment="Center" Margin="4,-12,0,0" VerticalAlignment="Center" Width="341" Height="163" Source="calendar.png" Stretch="Fill" Visibility="Collapsed" d:IsHidden="True"/>
			<Grid HorizontalAlignment="Center" VerticalAlignment="Center" Width="333" Height="163" Grid.Column="2" Background="{x:Null}" Opacity="0.985">
				<Path Fill="#FFFFFFFF" Stretch="Fill" Stroke="{x:Null}" Margin="5.5,0,3.5,11" Data="F1 M3.7829998,-1.9073486E-06 C1.6937068,0 0,1.6937068 4.1723251E-07,3.7829976 L4.1723251E-07,140.923 C0,143.0123 1.6937068,144.70599 3.7829998,144.70599 L162.217,144.70599 C164.30629,144.70599 166,143.0123 166,140.923 L166,3.7829976 C166,1.6937068 164.30629,0 162.217,-1.9073486E-06 L3.7829998,-1.9073486E-06 z M-145.711,-1.9073486E-06 C-147.80029,0 -149.494,1.6937068 -149.494,3.7830024 L-149.494,140.923 C-149.494,143.0123 -147.80029,144.70599 -145.711,144.70599 L-7.7869987,144.70599 C-5.6977067,144.70599 -4.0040002,143.0123 -4.0039997,140.923 L-4.0039997,3.7830024 C-4.0040002,1.6937068 -5.6977067,0 -7.7869987,-1.9073486E-06 L-145.711,-1.9073486E-06 z M-147.67101,-3.6870017 L163.289,-3.6870017 C166.88989,-3.687 169.80901,-0.76789659 169.80901,2.8330014 L169.80901,141.793 C169.80901,145.39389 166.88989,148.313 163.289,148.313 L-147.67101,148.313 C-151.2719,148.313 -154.19099,145.39389 -154.19099,141.793 L-154.19099,2.8330014 C-154.19099,-0.76789659 -151.2719,-3.687 -147.67101,-3.6870017 z"/>
				<Border HorizontalAlignment="Left" Margin="10,4,0,0" VerticalAlignment="Top" Width="145.667" Height="145" BorderBrush="#FF404040" BorderThickness="2,2,2,2" CornerRadius="2,2,2,2">
					<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto">
						<Grid.Background>
							<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
								<GradientStop Color="#FF0A0A0A" Offset="0"/>
								<GradientStop Color="#FF0A0A0A" Offset="1"/>
								<GradientStop Color="#FF1F1F1F" Offset="0.558"/>
							</LinearGradientBrush>
						</Grid.Background>
						<Label HorizontalAlignment="Center" VerticalAlignment="Top" Content="{Binding Path=DayOfTheWeek}" Background="{x:Null}" FontFamily="Calibri" FontSize="20" FontStretch="Normal" FontWeight="Bold" Foreground="#FFD5FC00" Padding="5,2,5,5" x:Name="_dayOfWeek"/>
						<Label HorizontalAlignment="Center" VerticalAlignment="Bottom" Height="Auto" Content="{Binding Path=Today.Day}" FontFamily="Microsoft Sans Serif" FontSize="110" FontWeight="Bold" Foreground="#FFFFFFFF" RenderTransformOrigin="0.5,0.5" Margin="0,17,0,0" FontStretch="Normal" x:Name="_dayNumber">
							<Label.RenderTransform>
								<TransformGroup>
									<ScaleTransform ScaleX="1" ScaleY="1"/>
									<SkewTransform AngleX="0" AngleY="0"/>
									<RotateTransform Angle="0"/>
									<TranslateTransform X="0" Y="0"/>
								</TransformGroup>
							</Label.RenderTransform>
						</Label>
						<Rectangle Fill="{x:Null}" Stroke="#FF0D0D0D" HorizontalAlignment="Stretch" Margin="0,22,0,0" VerticalAlignment="Center" Width="Auto"/>
						<Rectangle Fill="{x:Null}" Stroke="#FF000000" Margin="0,20,0,0" VerticalAlignment="Center"/>
					</Grid>
				</Border>
				<Border BorderBrush="#FF404040" BorderThickness="2,2,2,2" CornerRadius="2,2,2,2" Margin="160,4,8,14" Opacity="0.995">
					<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" x:Name="_calendarDaysContainer">
						<Grid.Background>
							<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
								<GradientStop Color="#FF0A0A0A" Offset="0"/>
								<GradientStop Color="#FF0A0A0A" Offset="1"/>
								<GradientStop Color="#FF1F1F1F" Offset="0.558"/>
							</LinearGradientBrush>
						</Grid.Background>
						<Label HorizontalAlignment="Center"  VerticalAlignment="Top" Content="{Binding Path=ActiveMonth}" Background="{x:Null}" FontFamily="Calibri" FontSize="14" FontStretch="Normal" FontWeight="Normal" Foreground="#FFD5FC00" Padding="5,2,5,5" Margin="0,0,0,0" x:Name="_currentMonthYear"/>
						<ListBox x:Name="_daysListbx" VerticalAlignment="Bottom" Height="104.9" Background="{x:Null}" Foreground="{x:Null}" ItemTemplate="{DynamicResource CalTemplate}" ItemsSource="{Binding Mode=OneWay}" IsSynchronizedWithCurrentItem="True" Style="{DynamicResource DaysListboxStyle}" ItemContainerStyle="{DynamicResource ListBoxItemContainerStyle}" ItemsPanel="{DynamicResource ItemsPanelTemplate1}" BorderBrush="{x:Null}" FontFamily="Arial"/>
						<Rectangle Opacity="0" HorizontalAlignment="Stretch" Width="Auto" Fill="#FF6000FF" Stroke="#FF000000"/>
						<StackPanel HorizontalAlignment="Left" Margin="28.365,25,0,0" Width="Auto" Orientation="Horizontal" Opacity="0.1">
							<Path Fill="{x:Null}" Stretch="Fill" Stroke="#FFA2A2A2" StrokeThickness="1" Width="1" Height="117.745" Data="M28.865169,21.455056 L28.865169,137.20721" Opacity="1"/>
							<Rectangle Fill="{x:Null}" Stroke="{x:Null}" Width="21"/>
							<Path Fill="{x:Null}" Stretch="Fill" Stroke="#FFA2A2A2" StrokeThickness="1" Width="1" Height="117.745" Data="M28.865169,21.455056 L28.865169,137.20721" Opacity="1"/>
							<Rectangle Fill="{x:Null}" Stroke="{x:Null}" Width="21" Height="117.745"/>
							<Path Fill="{x:Null}" Stretch="Fill" Stroke="#FFA2A2A2" StrokeThickness="1" Width="1" Height="117.745" Data="M28.865169,21.455056 L28.865169,137.20721" Opacity="1"/>
							<Rectangle Fill="{x:Null}" Stroke="{x:Null}" Width="21" Height="117.745"/>
							<Path Fill="{x:Null}" Stretch="Fill" Stroke="#FFA2A2A2" StrokeThickness="1" Width="1" Height="117.745" Data="M28.865169,21.455056 L28.865169,137.20721" Opacity="1"/>
							<Rectangle Fill="{x:Null}" Stroke="{x:Null}" Width="21" Height="117.745"/>
							<Path Fill="{x:Null}" Stretch="Fill" Stroke="#FFA2A2A2" StrokeThickness="1" Width="1" Height="117.745" Data="M28.865169,21.455056 L28.865169,137.20721" Opacity="1"/>
							<Rectangle Fill="{x:Null}" Stroke="{x:Null}" Width="21" Height="117.745"/>
							<Path Fill="{x:Null}" Stretch="Fill" Stroke="#FFA2A2A2" StrokeThickness="1" Width="1" Height="117.745" Data="M28.865169,21.455056 L28.865169,137.20721" Opacity="1"/>
							<Rectangle Fill="{x:Null}" Stroke="{x:Null}" Width="21" Height="117.745"/>
						</StackPanel>
						<ListBox Margin="0,20.955,0,0" x:Name="_weekDaysListbx" VerticalAlignment="Top" Height="15.145" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="{x:Null}" IsSynchronizedWithCurrentItem="True" Style="{DynamicResource weekDaysListbxStyle}" ItemContainerStyle="{DynamicResource weekDaysListbxItemsContainerStyle}" ItemTemplate="{DynamicResource WeekDaysTemplate}" ItemsPanel="{DynamicResource WeekDaysListbxPanel}" ItemsSource="{Binding Path=WeekDays}"/>
						<Button HorizontalAlignment="Left" Margin="10,0,0,0" x:Name="_prevMonthBut" VerticalAlignment="Top" Height="19" Content="" Cursor="Hand" Style="{DynamicResource GotoPreviousMonthButStyle}"/>
						<Button x:Name="_nextMonthBut" Content="" HorizontalAlignment="Right" Margin="0,0,10,0" VerticalAlignment="Top" Height="19" Cursor="Hand" Style="{DynamicResource GotoNextMonthButStyle}"/>
					</Grid>
				</Border>
			</Grid>
		</Grid>
		<Grid HorizontalAlignment="Stretch" x:Name="_flipZone" Width="{Binding Path=ActualWidth, ElementName=_frontside, Mode=Default}" Background="{x:Null}" VerticalAlignment="Stretch" Height="{Binding Path=ActualHeight, ElementName=_frontside, Mode=Default}"/>

	</Grid>

</UserControl>
